<%-- 
    Document   : administrator
    Created on : Mar 10, 2012, 8:43:13 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
         <%
        if(session.getAttribute("admin")== null){
            response.sendRedirect("adminlogin1234.jsp");
            }

        else{
        %>
        
    </head>
    <body>
        <% out.print("Welcome " +session.getAttribute("admin")+ "");%>
        <% out.print(" " +session.getAttribute("id")+ "");%>
        <h1>Administrator Page</h1>
        
        
        <input type="hidden" name="adminid" value="<%=session.getAttribute("id")%>"/>
        
         <a href="adminprofile.jsp"> View Profile </a>
         <a href="adminaddprod.jsp"> Add Product</a>
            <a href="admineditproduct.jsp"> Product List </a>
         <a href="adminaddmanager.jsp"> Add Manager </a>
          <a href="admincustomerlist.jsp"> Customer List </a>
             <a href="adminmanagerlist.jsp"> Manager List </a>
                          <a href="AdminLogs.jsp"> View Logs </a>
         <a href="AdminLogoutServlet"> Logout </a>s
        
        
    </body>
  <%
    }
        %>
</html>
